LEX += -+ -olex.yy.c

lib_LTLIBRARIES = libopenfixfast.la
libopenfixfast_la_SOURCES = \
	Session.cpp \
	Session.h \
	SessionTime.cpp \
	SessionTime.h \
	SessionState.h \
	SessionFactory.h \
	SessionFactory.cpp \
	types.h \
	FASTApi.h \
	common.h \
	common.cpp \
	Parser.cpp \
	Parser.h \
	FixParser.cpp \
	FixParser.h \
	FASTParser.cpp \
	FASTParser.h \
	FASTApi.cpp \
	FASTApi.h \
	Log.cpp \
	Log.h \
	FileLog.cpp \
	FileLog.h \
	Settings.cpp \
	Settings.h \
	ConfigLexer.cpp \
	ConfigLexer.h \
	MessageStore.cpp \
	MessageStore.h \
	SocketServer.cpp \
	SocketServer.h \
	SocketConnector.cpp \
	Acceptor.cpp \
	Acceptor.h \
	Initiator.cpp \
	Initiator.h \
	SocketAcceptor.cpp \
	SocketAcceptor.h \
	SocketInitiator.cpp \
	SocketInitiator.h \
	SocketMonitor.cpp \
	SocketMonitor.h \
	SocketConnection.cpp \
	SocketConnection.h \
	ThreadedSocketAcceptor.cpp \
	ThreadedSocketAcceptor.h \
	ThreadedSocketInitiator.cpp \
	ThreadedSocketInitiator.h \
	ThreadedSocketConnection.cpp \
	ThreadedSocketConnection.h \
	FileStore.cpp \
	FileStore.h \
	MySQLConnection.h \
	MySQLStore.cpp \
	MySQLStore.h \
	MySQLLog.cpp \
	MySQLLog.h \
	PostgreSQLConnection.h \
	PostgreSQLStore.cpp \
	PostgreSQLStore.h \
	PostgreSQLLog.cpp \
	PostgreSQLLog.h \
	DatabaseConnectionID.h \
	DatabaseConnectionPool.h \
	Dictionary.cpp \
	Dictionary.h \
	DataDictionary.cpp \
	DataDictionary.h \
	SessionSettings.cpp \
	SessionSettings.h \
	Application.h \
	Field.h \
	FieldConvertors.h \
	FieldNumbers.h \
	DeprecatedFieldNumbers.h \
	FieldTypes.cpp \
	FieldTypes.h \
	Fields.h \
	DeprecatedFields.h \
	FieldMap.cpp \
	FieldMap.h \
	Message.cpp \
	Message.h \
	Group.cpp \
	Group.h \
	MessageSorters.cpp \
	MessageSorters.h \
	HttpParser.cpp \
	HttpParser.h \
	HttpMessage.cpp \
	HttpMessage.h \
	HttpConnection.h \
	HttpConnection.cpp \
	HttpServer.cpp \
	HttpServer.h \
	SessionID.h \
	SocketConnector.h \
	Mutex.h \
	Event.h \
	Queue.h \
	Exceptions.h \
	Utility.cpp \
	Utility.h \
	Values.h \
	DeprecatedValues.h \
	FlexLexer.h \
	DOMDocument.h \
	LIBXML_DOMDocument.cpp \
	LIBXML_DOMDocument.h \
	MessageCracker.h \
	Responder.h \
	CallStack.h \
	CallStack.cpp

all-local:
	rm -rf $(top_builddir)/lib
	mkdir -p $(top_builddir)/lib
	cp -p $(top_builddir)/src/cpp/.libs/libopenfixfast* $(top_builddir)/lib/.
	bash ./copy.sh $(top_builddir)/include *.h

clean-local:
	rm -rf $(top_builddir)/lib
	rm -rf $(top_builddir)/include

install-exec-local: *.h
	rm -rf $(pkgincludedir)
	mkdir -p $(pkgincludedir)
	mkdir $(pkgincludedir)/fix
	cp *.h $(pkgincludedir)
	cp $(top_builddir)/config.h $(pkgincludedir)
	cp fix/*.h $(pkgincludedir)/fix

uninstall-local:
	rm -rf $(pkgincludedir)

EXTRA_DIST = strptime.c strptime.h copy.sh

libopenfixfast_la_LDFLAGS = -version-info 10:0:0

INCLUDES =-I. -I.. -I../..
